package cn.edu.wfit.modules.infomanagement.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import cn.edu.wfit.common.core.annotation.Excel;
import cn.edu.wfit.common.core.web.domain.BaseEntity;

/**
 * 日期预约对象 t_bus_date
 * 
 * @author zhanghao
 * @date 2025-11-07
 */
public class TBusDate extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 关联发车安排表 */
    @Excel(name = "关联发车安排表")
    private Long scheduleId;

    /** 发车具体日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发车具体日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date departureData;

    /** 荷载人数 */
    @Excel(name = "荷载人数")
    private Long maxCapacit;

    /** 状态(1,进行中2,已结束) */
    @Excel(name = "状态(1,进行中2,已结束)")
    private Long status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setScheduleId(Long scheduleId) 
    {
        this.scheduleId = scheduleId;
    }

    public Long getScheduleId() 
    {
        return scheduleId;
    }

    public void setDepartureData(Date departureData) 
    {
        this.departureData = departureData;
    }

    public Date getDepartureData() 
    {
        return departureData;
    }

    public void setMaxCapacit(Long maxCapacit) 
    {
        this.maxCapacit = maxCapacit;
    }

    public Long getMaxCapacit() 
    {
        return maxCapacit;
    }

    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("scheduleId", getScheduleId())
            .append("departureData", getDepartureData())
            .append("maxCapacit", getMaxCapacit())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("status", getStatus())
            .toString();
    }
}
